﻿using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;

namespace PurchaseSales.Manage.Common.Converters
{
   public class BooleanToVisibilityReverseConverter:IValueConverter
    {
       public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
       {
           var b = value as bool?;
           if (b==true)
           {
               return Visibility.Collapsed;
           }
           return Visibility.Visible;
       }

       public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
       {
           throw new NotImplementedException();
       }
    }
}
